Repository navigation
Conversation
@astronautlabs/jsonpath is an unpatched fork of jsonpath with the same unchecked static-eval call that CVE-2026-1615 covers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
github-actions
Bot
changed the base branch from
main
to
Rohukas/advisory-improvement-12183
December 1, 2026 13:23
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The advisory fails to name the unpatched fork or distinguish it from upstream jsonpath, fixed in 1.3.0, making the remediation guidance ambiguous.
1 open issue
What changed in this PR
Extends GHSA-87r5-mp6g-5w5j to cover the unpatched @astronautlabs/jsonpath fork alongside upstream jsonpath.
Changes:
- Adds the fork as affected, with no patched version and 1.1.2 recorded as the last known affected release.
- Adds a source reference to the fork’s vulnerable expression evaluation.
| File | Description |
|---|---|
advisories/github-reviewed/2026/02/GHSA-87r5-mp6g-5w5j/GHSA-87r5-mp6g-5w5j.json |
Adds the affected fork, version metadata, and supporting source reference. |
Review effort: Max (adaptive)
| { | ||
| "package": { | ||
| "ecosystem": "npm", | ||
| "name": "@astronautlabs/jsonpath" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

GHSA-87r5-mp6g-5w5j (CVE-2026-1615,
jsonpath<= 1.2.1) also applies to@astronautlabs/jsonpath, a GitHub fork of dchester/jsonpath ported to TypeScript. The fork never received the 1.3.0 fix. This PR adds it with no patched version.@astronautlabs/jsonpath, all published versions (1.0.3 to 1.1.2). Last release 2023-06-19. About 45,700 downloads a week.src/handlers.tspasses the parsed filter and script expressions straight tostatic-eval, with no check: https://github.com/astronautlabs/jsonpath/blob/d391fbe2db68780591efb2a573be3432c9c4a4b4/src/handlers.ts#L60-L62. The upstream fix (dchester/jsonpath@491e2e0) adds an allow-list (isSafeAst) at the same place.How this was checked:
static-eval2.0.2 and calls it directly on the parsed expression. None of them has a safety check. Version 1.0.3 ships only the TypeScript source, which has the same call.JSONPath.query({ items: [{ n: 1, label: "one" }] }, "$.items[?(@.label.toUpperCase() == 'ONE')].n")returns[1]with 1.1.2, so method calls in filter expressions are evaluated.jsonpath1.3.0 rejects the same query as an unsafe expression.As with the original advisory, only applications that pass untrusted JSONPath expressions to the library are exposed.
🤖 Generated with Claude Code